SecurityKeyWrapper

public final class SecurityKeyWrapper

This class is the wrapper for the secret key that provide ability to encrypt/decrypt data using it.

Constructors

SecurityKeyWrapper
Link copied to clipboard
SecurityKeyWrapper SecurityKeyWrapper(SecretKey secretKey)

Types

Companion
Link copied to clipboard
public class Companion

Functions

decrypt
Link copied to clipboard
final String decrypt(String encryptedToken)
This method decrypts data using the secret key.
encrypt
Link copied to clipboard
final String encrypt(String token)
This method encrypts data using the secret key.
getCipher
Link copied to clipboard
final Cipher getCipher(Integer mode)
getSecretKey
Link copied to clipboard
final SecretKey getSecretKey()

Properties

secretKey
Link copied to clipboard
private final SecretKey secretKey